import config from "@/http/config.js"

export const getList = (params = {}) => {
    return config.getData("/permission/getList", params).then(res => {
        return res.data
    })
}

export const createPermission = (params = {}) => {
    return config.postData("/permission/create", params)
}

export const detail = (params = {}) => {
    return config.getData("/permission/detail", params).then(res => {
        return res.data
    })
}

export const updatePermission = (params = {}) => {
    return config.postData("/permission/update", params)
}

export const selectPermission = (params = {}) => {
    return config.getData("/select/selectPermission", params).then(res => {
        return res.data
    })
}
